<?php
/**
 * 权限分组信息
 */

namespace app\api\business;
use app\common\model\mysql\AdminGroup as AdminGroupModel;
use think\Exception;
class AdminGroupBus extends BaseBus
{
    /**
     * 根据条件查询
     * @param $user_number 账号
     * @return array|false
     */
    public static function getConditionalQuery($where)
    {
        try{
            if(!is_array($where)){
                return false;
            }
            $adminGroupModel = new AdminGroupModel();
            $info = $adminGroupModel->getConditionalQuery($where);
            if(empty($info)){
                return false;
            }
            return $info->toArray();
        } catch(\Exception $e) {
            exception($e,'AdminBus.getUserByUserNumber');
        }
    }
}
